﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/admincp.Master" AutoEventWireup="true" CodeBehind="ListMenu.aspx.cs" Inherits="SES.CMS.AdminCP.ListMenu" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register assembly="DevExpress.Web.ASPxTreeList.v9.2" namespace="DevExpress.Web.ASPxTreeList" tagprefix="dxwtl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2 style="text-align: left; float: left;">
    Danh sách Menu</h2>
<div class="DLKhuVuc" >
    <span>Phân loại </span>
    <asp:DropDownList runat="server" ID="ddlType" AppendDataBoundItems="true" CssClass="ddl-input"
        AutoPostBack="true" onselectedindexchanged="ddlType_SelectedIndexChanged">
        <asp:ListItem Value="0" Text=".: Không chọn :."></asp:ListItem>
        <asp:ListItem Value="1" Text="Top menu"></asp:ListItem>
        <asp:ListItem Value="2" Text="Main menu"></asp:ListItem>
        <asp:ListItem Value="3" Text="Menu Left"></asp:ListItem>
        <asp:ListItem Value="4" Text="Menu Mobile"></asp:ListItem>
        <asp:ListItem Value="5" Text="Menu Footer Mobile"></asp:ListItem>
    </asp:DropDownList>
</div>
<dxwtl:ASPxTreeList ID="tlMenu" runat="server" AutoGenerateColumns="False" Width="100%"
    ClientInstanceName="tlMenu" KeyFieldName="MenuID" ParentFieldName="ParentID"
    EnableCallbacks="False" OnNodeDeleted="tlMenu_NodeDeleted" OnStartNodeEditing="tlMenu_StartNodeEditing">
    <SettingsPager Mode="ShowPager" PageSize="100">
        <AllButton Text="Tất cả">
        </AllButton>
        <NextPageButton Text="Tiếp theo &gt;">
        </NextPageButton>
        <PrevPageButton Text="&lt; Trước">
        </PrevPageButton>
    </SettingsPager>
    <SettingsBehavior AllowFocusedNode="True" />
    <SettingsPager ShowDefaultImages="False">
        <AllButton Text="Tất cả">
        </AllButton>
        <NextPageButton Text="Tiếp theo &gt;">
        </NextPageButton>
        <PrevPageButton Text="&lt; Trước">
        </PrevPageButton>
    </SettingsPager>
    <Columns>
                
        <dxwtl:TreeListTextColumn FieldName="MenuID" Name="clMenuID" Visible="False" VisibleIndex="0">
        </dxwtl:TreeListTextColumn>
        <dxwtl:TreeListTextColumn Caption="Tiêu đề" Width="60%" Name="Title" VisibleIndex="0"
            FieldName="Title">
        </dxwtl:TreeListTextColumn>
        <dxwtl:TreeListTextColumn Caption="Link" Width="30%" FieldName="Link" Name="clLink"
            VisibleIndex="1">
        </dxwtl:TreeListTextColumn>
        <dxwtl:TreeListTextColumn Caption="Phân loại" Width="10%" Name="clType"
            Visible="True" VisibleIndex="2">
            <DataCellTemplate>
                <%#ReturnType(Eval("Type")) %>
            </DataCellTemplate>
        </dxwtl:TreeListTextColumn>
        <dxwtl:TreeListTextColumn Caption="Thứ tự" Width="10%" FieldName="OrderID" Name="clOrderID"
            VisibleIndex="3">
        </dxwtl:TreeListTextColumn>
        <dxwtl:TreeListCommandColumn Caption="Sửa" VisibleIndex="4" Width="5%">
            <EditButton Text="Sửa" Visible="True">
            </EditButton>
        </dxwtl:TreeListCommandColumn>
        <dxwtl:TreeListCommandColumn VisibleIndex="5" Caption="Xóa" Width="5%">
            <DeleteButton Text="Xóa" Visible="True">
            </DeleteButton>
        </dxwtl:TreeListCommandColumn>
    </Columns>
</dxwtl:ASPxTreeList>
<div style="float: left; width: 100%; margin: 10px 0 10px 0;">
    <asp:HyperLink runat="server" ID="hplAdd" NavigateUrl="/AdminCP/Menu.aspx"
        CssClass="button-gg-green" Text="Thêm mới"></asp:HyperLink>
</div>

</asp:Content>
